package Hws;

 public class Cat{
     private String name;

     public Cat(String name){
         this.name = name;
     }
     void printInfo(){
         System.out.println("大家好，我是"+name);
     }
     void mew(){
         System.out.println(name+":喵喵喵");
     }
     void eat(String food){
         System.out.println(name+"在吃"+food);
     }
     }


